﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="frmListarBancos.aspx.cs" Inherits="Intelsi.WB.frmListarBancos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="post">
			<h2 class="title">Lista de Bancos</h2>
</div>

    <asp:Button ID="BtnNuevoBanco" runat="server" Text="Nuevo Banco" 
        onclick="BtnNuevoBanco_Click" />

    <br />
    <br />

<fieldset>
    <b>Nombre: </b>
    <asp:TextBox ID="txtnombre" runat="server" Width="313px"></asp:TextBox>&nbsp;&nbsp; <asp:Button ID="btnBuscar"
        runat="server" Text="Buscar" />
</fieldset>
<br />
<fieldset>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        onobjectcreating="ObjectDataSource1_ObjectCreating" 
        SelectMethod="GetAllFromBancoByCriterio" 
        TypeName="Intelsi.BusinessLogic.BancoBL">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtnombre" Name="criterio" PropertyName="Text" 
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ObjectDataSource1" CellPadding="4" ForeColor="#333333" 
        GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="IdBanco" HeaderText="Codigo" 
                SortExpression="IdBanco" />
            <asp:BoundField DataField="Nombre" HeaderText="Nombre" 
                SortExpression="Nombre" />
            <asp:BoundField DataField="TipoBanco" HeaderText="Tipo" ReadOnly="True" 
                SortExpression="TipoBanco" />
            <asp:TemplateField HeaderText="Acciones">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" 
                        PostBackUrl='<%# Eval("IdBanco","FrmBanco.aspx?acc=editar&IdBanco={0}") %>'>Editar</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
</fieldset>
</asp:Content>
